﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using MyLocalChurch.Models.Enumerations;
using MyLocalChurch.Models.Resources;

namespace MyLocalChurch.Models.KidsChurch
{
    public class CheckInOut
    {
        public int Id { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DataType(DataType.DateTime, ErrorMessageResourceName = "Invalid", ErrorMessageResourceType = typeof(ErrorMessages))]
        public DateTime CheckInTimeStamp { get; set; }

        [DataType(DataType.DateTime, ErrorMessageResourceName = "Invalid", ErrorMessageResourceType = typeof(ErrorMessages))]
        public DateTime? CheckOutTimeStamp { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual ChurchService ChurchService { get; set; }

        public virtual Kid Kid { get; set; }
    }
}